package com.wzx.common.core.controller;

import com.wzx.common.pojo.req.PageRequestDto;
import com.wzx.common.pojo.resp.Result;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/1/24 - 11:16
 * @description 分页controller接口
 */
public interface IPagingController<T> {
    /**
     * 根据查询条件 requestDto 分页查询
     *
     * @return
     */
    Result findByPage(PageRequestDto<T> requestDto) throws IllegalAccessException, IntrospectionException, InvocationTargetException;
}
